/*
 * @Description: 在线用户 - 接口
 * @Author: DHL
 * @Date: 2022-04-02 14:02:17
 * @LastEditors: DHL
 * @LastEditTime: 2023-12-15 11:28:20
 */

import {
  OnlineUserPageParams,
  OnlineUserPageResultModel,
  OnlineUserResultModel
} from './model/onlineUserModel'
import { $get, $post, $put } from '@/utils/http'

/**
 * 查询在线用户
 */
export const apiOnlineUserSearch = (searchParams: OnlineUserPageParams) =>
  $get<OnlineUserPageResultModel>({
    url: '/sys/twbUser/searchOnlineLoginUser',
    params: searchParams
  })

/**
 * 删除在线用户信息
 */
export const apiOnlineUserRemove = (token: string) =>
  $post<OnlineUserResultModel>({
    url: '/sys/twbUser/removeOnlineLoginUser',
    params: { token: token }
  })
